package com.jch.demo.cd.controller;

import cn.hutool.crypto.SecureUtil;
import com.jfinal.core.Controller;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 迩道
 */
public class LoginController extends Controller {

  public void index(String username, String password) {
    Map<String, Object> map = new HashMap();
    map.put("code",20000);
    Map<String,Object> data = new HashMap<>();
    data.put("token", SecureUtil.md5(username + password));
    map.put("data",data);
    renderJson(map);
  }


}
